<?php
namespace BP\Sys;
require_once("BP/En/Map.php");
class GloVarExt extends EntityNoName {
	public function getValOfObject () 
	{
		return $this->GetValByKey(GloVarAttr::$Val);
	}
	public function setValOfObject ($value) // [Object value]
	{
		$this->SetValByKey(GloVarAttr::$Val, $value);
	}
	public function getVal () 
	{
		return $this->GetValStringByKey(GloVarAttr::$Val);
	}
	public function setVal ($value) // [String value]
	{
		$this->SetValByKey(GloVarAttr::$Val, $value);
	}
	public function getValOfFloat () 
	{
		try 
		{
			return $this->GetValFloatByKey(GloVarAttr::$Val);
		}
		catch (\Exception $e)
		{
			return 0;
		}
	}
	public function setValOfFloat ($value) // [float value]
	{
		$this->SetValByKey(GloVarAttr::$Val, $value);
	}
	public function getValOfInt () 
	{
		try 
		{
			return $this->GetValIntByKey(GloVarAttr::$Val);
		}
		catch (\RuntimeException $ex)
		{
			return 0;
		}
	}
	public function setValOfInt ($value) // [int value]
	{
		$this->SetValByKey(GloVarAttr::$Val, $value);
	}
	public function getValOfDecimal () 
	{
		try 
		{
			return $this->GetValDecimalByKey(GloVarAttr::$Val);
		}
		catch (\Exception $e)
		{
			throw new \RuntimeException(((("@" . $this->getName()) . ", 没有设置默认�?.") . $this->getVal()));
		}
	}
	public function setValOfDecimal ($value) // [BigDecimal value]
	{
		$this->SetValByKey(GloVarAttr::$Val, $value);
	}
	public function getValOfBoolen () 
	{
		return $this->GetValBooleanByKey(GloVarAttr::$Val);
	}
	public function setValOfBoolen ($value) // [boolean value]
	{
		$this->SetValByKey(GloVarAttr::$Val, $value);
	}
	public function getNote () 
	{
		return $this->GetValStringByKey(GloVarAttr::$Note);
	}
	public function setNote ($value) // [String value]
	{
		$this->SetValByKey(GloVarAttr::$Note, $value);
	}
	public function getGroupKey () 
	{
		return $this->GetValStringByKey(GloVarAttr::$GroupKey);
	}
	public function setGroupKey ($value) // [String value]
	{
		$this->SetValByKey(GloVarAttr::$GroupKey, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->setNo($no);
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_GloVar", "全局变量");
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetEnType($EnType->Sys);
		$map->AddTBStringPK(GloVarAttr::$No, NULL, "�?",  TRUE ,  FALSE , 1, 50, 20);
		$map->AddTBString(GloVarAttr::$Name, NULL, "名称",  TRUE ,  FALSE , 0, 120, 20);
		$map->AddTBString(GloVarAttr::$Val, NULL, "�?/表达�?",  TRUE ,  FALSE , 0, 2000, 20,  TRUE );
		$map->AddTBString(GloVarAttr::$GroupKey, NULL, "分组�?",  FALSE ,  FALSE , 0, 120, 20,  FALSE );
		$map->AddTBStringDoc(GloVarAttr::$Note, NULL, "备注",  TRUE ,  FALSE ,  TRUE );
		$map->AddTBInt(GloVarAttr::$Idx, 0, "顺序�?",  TRUE ,  TRUE );
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
